package self;

public class TestInterface01 implements Fly,Walk{
    @Override
    public void fly() {
        System.out.println("fly");
    }

    @Override
    public void walk() {
        System.out.println("walk");
    }

    public static void main(String[] args) {
        System.out.println(Fly.a);
        TestInterface01 inter01= new TestInterface01();
        inter01.fly();
    }
}


interface Fly{
    int a = 1;
    void fly();
}
interface Walk{
    int b = 2;
    void walk();
}